<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script>
$(function () {
	grid = $('#grid').datagrid({
        title: '产品管理',
        iconCls: 'icon-save',
        methord: 'get',
        url: 'Handler.ashx?action=list&ran='+Math.random(),
        sortName: 'ID',
        sortOrder: 'desc',
        idField: 'ID',
        pageSize: 30,
        frozenColumns: [[
	                { field: 'ck', checkbox: true }
        //,{ title: 'ID', field: 'ID', width: 80, sortable: true }
				]],
        columns: [[
					{ field: 'title', title: '名称', width: 150 },
					{ field: 'addTime', title: '添加日期', width: 150, sortable: true }
				]],
        fit:true,
        pagination: true,
        rownumbers: true,
        fitColumns: true,
        singleSelect: false,
        onHeaderContextMenu: function (e, field) {
          
        }
    });
   
});
</script>
<body  class="easyui-layout" style="overflow-y: hidden" scroll="no">
	<div id="grid" > </div>
</body>
</html>
